package com.towery.dbsrcmanager.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by User on 2016/11/23.
 */
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter implements EnvironmentAware {
    @Autowired
    Environment env;

    @Override
    public void setEnvironment(Environment environment) {
        this.env =environment;
    }
}
